package com.oceansoft.xml.biz;

import com.oceansoft.xml.util.TransitionException;

public class TransitionFactory {
	
	public static ITransition transition(Class<?> clazz) throws InstantiationException, IllegalAccessException, ClassNotFoundException, TransitionException{
		Object obj=clazz.newInstance();
		if (obj instanceof ITransition) {
			return (ITransition)obj;
		}else{
			throw new TransitionException();
		}
	}
}
